<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a rel="nofollow" href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <?php if ($products) { ?>
  <div class="pagination"><?php echo $pagination; ?></div>
  <div class="product-filter">
    <div class="sort">
      <?php foreach ($sorts as $sortItem) { ?>
      <?php if ($sortItem['value'] == $sort . '-' . $order) { ?>
      <a rel="nofollow" href="<?php echo $sortItem['href']; ?>" class="active"><?php echo $sortItem['text']; ?></a><span>|</span>
      <?php } else { ?>
      <a rel="nofollow" href="<?php echo $sortItem['href']; ?>"><?php echo $sortItem['text']; ?></a><span>|</span>
      <?php } ?>
      <?php } ?>
    </div>
  	<div class="limit">
  	  <span><?php echo $text_limit; ?></span>
      <?php foreach ($limits as $limitItem) { ?>
      <?php if ($limitItem['value'] == $limit) { ?>
        <a rel="nofollow" href="<?php echo $limitItem['href']; ?>" class="active"><?php echo $limitItem['text']; ?></a><span>|</span>
        <?php } else { ?>
        <a rel="nofollow" href="<?php echo $limitItem['href']; ?>"><?php echo $limitItem['text']; ?></a><span>|</span>
        <?php } ?>
        <?php } ?>
      </select>
    </div>
  </div>
  <div class="product-grid">
    <?php foreach ($products as $product) { ?>
    <div>
      <?php if ($product['thumb']) { ?>
      <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
      <?php } ?>
      <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
      <?php if ($product['price']) { ?>
      <div class="price">
        <?php if (!$product['special']) { ?>
        <?php echo $product['price']; ?>
        <?php } else { ?>
        <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
        <?php } ?>
        <?php if ($product['tax']) { ?>
        <br />
        <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
        <?php } ?>
      </div>
      <?php } ?>
      <?php if ($product['rating']) { ?>
      <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
      <?php } ?>
    </div>
    <?php } ?>
  </div>
  <div class="pagination"><?php echo $pagination; ?></div>
  <?php } else { ?>
  <div class="content"><?php echo $text_empty; ?></div>
  <?php }?>
  <?php echo $content_bottom; ?>
</div>
<?php echo $footer; ?>